<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
       .bw{
           width: 500px;
           height: 250px;
           background-color: green;
           background-image: url(images/1.png)
       }
    </style>
</head>
<body>
    <div class="bw">
        css 背景颜色和图片
    </div>
</body>
</html>